package com.jt9003.service;


import com.jt9003.pojo.Usage;
import com.jt9003.pojo.User1;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UsageService {
    //增加用法
    public int insertUsage(String usageName);
    //根据Id删除用法
    public int deleteUsageById(int usageId);
    //根据Id修改用法
    public int updateUsageById(Usage usage);
    //根据Id修改用法状态
    public int updateUsageStateById(Usage usage);
    //根据用法的名称或拼音首字母进行查询
    public List<Usage> selectUsageByNameOrPinyinInitials(String usageName, Integer start, Integer limit);
    //根据用法的名称或拼音首字母进行查询数量
    public int getUsageCountByResult(String usageName);
    //直接查询所有用法
    public List<Usage> selectUsageList(Integer start, Integer limit);
    //根据Id批量删除用法
    public int deleteUsagesById(List<Integer> idList);
    //查询数据
    public int getUsageCount();
}
